package com.sblab.appengine.controller;

import java.util.List;
import java.util.Locale;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sblab.appengine.dao.StadiumDao;
import com.sblab.appengine.dao.plain.PlainStadiumDao;
import com.sblab.appengine.domain.Stadium;

@RestController
public class DbPlainTestController {
	
	private static StadiumDao stadiumDao = new PlainStadiumDao();

	@RequestMapping(value = "/dbPlainTest", method = RequestMethod.GET)
	public List home(Locale locale, Model model) {

		List<Stadium> stadiums = stadiumDao.findAll();
		
		return stadiums;
	}
	
}
